home *** CD-ROM | disk | FTP | other *** search
/ Quick PC 61 / Quick PC 61.iso / I386 / DRIVER.CAB / t9112p6.gpd < prev    next >
Encoding:
Text File  |  2003-02-21  |  33.1 KB  |  1,141 lines

  1. *%%
  2. *%% Tally T9112 PCL
  3. *%%
  4. *%% Copyright 1998 - 1999, Microsoft Corp.
  5. *%% All Rights Reserved.
  6. *%%
  7.  
  8. *%%
  9. *%% Global Entries
  10. *%%
  11. *GPDSpecVersion: "1.0"
  12. *GPDFileVersion: "1.0"
  13.  
  14. *%%% ======================
  15. *%%% Include standard GPD files
  16. *%%% =====================
  17. *Include: "StdNames.gpd"
  18. *Include: "ttfsub.gpd"
  19.  
  20. *%%
  21. *%% Model Specific Global Entries
  22. *%%
  23. *GPDFileName: "T9112P6.GPD"
  24. *ModelName:   "Tally T9112 PCL"
  25. *MaxCopies: 999
  26. *PrintRate: 12
  27. *PrintRatePPM: 12
  28. *PrintRateUnit: PPM
  29. *%%HelpFile: "hplj5si.hlp"
  30.  
  31.  
  32. *%%% ======================
  33. *%%% Macros
  34. *%%% ======================
  35. *Include: "pjl.gpd"
  36. *Include: "p6font.gpd"
  37. *Include: "p6disp.gpd"
  38.  
  39. *Macros: TallyPJLCommand
  40. {
  41.     PJL_FEIT_ON:         "@PJL SET FEIT=ON<0A>"
  42.     PJL_FEIT_OFF:        "@PJL SET FEIT=OFF<0A>"
  43.  
  44.     PJL_TRAY1_LOCKED:    "@PJL SET INTRAY1=LOCKED<0A>"
  45.     PJL_TRAY1_UNLOCKED:  "@PJL SET INTRAY1=UNLOCKED<0A>"
  46.     PJL_TRAY2_LOCKED:    "@PJL SET INTRAY2=LOCKED<0A>"
  47.     PJL_TRAY2_UNLOCKED:  "@PJL SET INTRAY2=UNLOCKED<0A>"
  48.     PJL_TRAYMFF_LOCKED:    "@PJL SET INTRAYMFF=LOCKED<0A>"
  49.     PJL_TRAYMFF_UNLOCKED:  "@PJL SET INTRAYMFF=UNLOCKED<0A>"
  50.  
  51.     PJL_MANUALFEED_ON:    "@PJL SET MANUALFEED=ON<0A>"
  52.     PJL_MANUALFEED_OFF:    "@PJL SET MANUALFEED=OFF<0A>"
  53. }
  54.  
  55. *%%% ======================
  56. *%%% Main
  57. *%%% ======================
  58. *Include: "pclxl.gpd"
  59.  
  60. *%%% ======================
  61. *%%% DOC_SETUP, PAGE_FINISH
  62. *%%% , JOB_FINISH
  63. *%%% ======================
  64. *Macros: PCLXLCommand
  65. {
  66. *%%% ---------------------------------------------------------------------------
  67. *%%% PCL XL Stream Header
  68. *%%% ---------------------------------------------------------------------------
  69. PCLXL_StreamHeader: ") HP-PCL XL;1;1;"
  70. +                   "Comment Copyright(c) 1999 Microsoft Corporation<0A>"
  71.  
  72. *%%% ---------------------------------------------------------------------------
  73. *%%% BeginSession
  74. *%%%     Measure(ubyte) & UnitsPerMeasure(uint16_xy) & {ErrorReport(ubyte)}
  75. *%%% ---------------------------------------------------------------------------
  76. *%%% PCLXL_BeginSession1200: =uint16_xy "<b004b004>" =attr_ubyte =UnitsPerMeasure =ubyte
  77. *%%% + =eInch =attr_ubyte =Measure =ubyte =eBackChAndErrPage =attr_ubyte =ErrorReport =BeginSession
  78.  
  79. PCLXL_BeginSession600: =uint16_xy "<58025802>" =attr_ubyte =UnitsPerMeasure =ubyte
  80. + =eInch =attr_ubyte =Measure =ubyte =eBackChAndErrPage =attr_ubyte =ErrorReport =BeginSession
  81.  
  82. PCLXL_BeginSession300: =uint16_xy "<2c012c01>" =attr_ubyte =UnitsPerMeasure =ubyte
  83. + =eInch =attr_ubyte =Measure =ubyte =eBackChAndErrPage =attr_ubyte =ErrorReport =BeginSession
  84.  
  85. Width: %m{ RasterDataWidthInBytes }
  86. Height: %m{ RasterDataHeightInPixels }
  87. DataSize: %l{ NumOfDataBytes }
  88. FntHeight: %l{ FontHeight*300/TextYRes }
  89. FntNextGlyph: %l{ NextGlyph }
  90.  
  91. *%%% ---------------------------------------------------------------------------
  92. *%%% BeginRaster
  93. *%%%     ColorDepth(ubyte) & ColorMapping(ubyte) & SourceWidth(uint16) &
  94. *%%%     SourceWidth(uint16) & SourceHeight(uint16)
  95. *%%% ---------------------------------------------------------------------------
  96. PCLXL_CmdBeginRaster: =ubyte =e1Bit =attr_ubyte =ColorDepth
  97. +                     =ubyte =eDirectPixel =attr_ubyte =ColorMapping
  98. +                     =uint16 =Width =attr_ubyte =SourceWidth
  99. +                     =uint16 =Height =attr_ubyte =SourceHeight
  100. +                     =uint16_xy =Width =Height =attr_ubyte =DestinationSize
  101. +                     =BeginImage
  102. +                     =ubyte =eNoCompression =attr_ubyte =CompressMode
  103. +                     =ubyte "<00>" =attr_ubyte =StartLine
  104. +                     =uint16 =Height =attr_ubyte =BlockHeight
  105. +                     =ReadImage
  106.  
  107. PCLXL_CmdSendBlockData: =dataLength =DataSize "<0000>"
  108.  
  109. DestinationX: %l{DestX}
  110. DestinationY: %l{DestY}
  111. DestinationXRel: %l{DestYRel}
  112. DestinationYRel: %l{DestXRel}
  113. NumOfCopy: %l{NumOfCopies}
  114. PrintDir: %l{PrintDirInCCDegrees}
  115. FntName: =ubyte_array =uint16 "<1000>" "MS PCLXLFont " %3d{CurrentFontID}
  116. }
  117.  
  118. *%%% ======================
  119. *%%% Features and Options
  120. *%%% ======================
  121.  
  122. *%% Orientation
  123. *Feature: Orientation
  124. {
  125.     *rcNameID: =ORIENTATION_DISPLAY
  126.     *DefaultOption: PORTRAIT
  127.     *Option: PORTRAIT
  128.     {
  129.         *rcNameID: =PORTRAIT_DISPLAY
  130.     }
  131.     *Option: LANDSCAPE_CC90
  132.     {
  133.         *rcNameID: =LANDSCAPE_DISPLAY
  134.     }
  135. }
  136.  
  137. *%%% ======================
  138. *%%% DOC_SETUP
  139. *%%% ======================
  140.  
  141. *%%% ======================
  142. *%%% DOC_SETUP.1
  143. *%%% START PLJ JOB
  144. *%%% PAGEPROTECT
  145. *%%% TIMEOUT
  146. *Feature: PageProtect
  147. {
  148.     *rcNameID: =PAGE_PROTECTION_DISPLAY
  149.     *DefaultOption: OFF
  150.     *Option: ON
  151.     {
  152.         *rcNameID: =ON_DISPLAY
  153.         *Command: CmdSelect
  154.         {
  155.             *Order: DOC_SETUP.1
  156.             *Cmd: =PJL_STARTJOB =PJL_COMMENT =PJL_PAGEPROTECT_ON =PJL_TIMEOUT_90
  157.         }
  158.     }
  159.     *Option: OFF
  160.     {
  161.         *rcNameID: =OFF_DISPLAY
  162.         *Command: CmdSelect
  163.         {
  164.             *Order: DOC_SETUP.1
  165.             *Cmd: =PJL_STARTJOB =PJL_COMMENT =PJL_PAGEPROTECT_OFF =PJL_TIMEOUT_90
  166.         }
  167.     }
  168. }
  169. *%%% ======================
  170. *%%% DOC_SETUP.2
  171. *%%% ECONOMODE
  172. *Feature: Economode
  173. {
  174.     *rcNameID: =ECONOMODE_DISPLAY
  175.     *DefaultOption: Option1
  176.     *Option: Option1
  177.     {
  178.         *rcNameID: =ECONOMODE_DEFAULT_DISPLAY
  179.     }
  180.     *Option: Option2
  181.     {
  182.         *rcNameID: =ECONOMODE_OFF_DISPLAY
  183.         *Command: CmdSelect
  184.         {
  185.             *Order: DOC_SETUP.2
  186.             *Cmd: =PJL_ECONOMODE_OFF
  187.         }
  188.     }
  189.     *Option: Option3
  190.     {
  191.         *rcNameID: =ECONOMODE_ON_DISPLAY
  192.         *Command: CmdSelect
  193.         {
  194.             *Order: DOC_SETUP.2
  195.             *Cmd: =PJL_ECONOMODE_ON
  196.         }
  197.     }
  198. }
  199.  
  200. *%%% ======================
  201. *%%% DOC_SETUP.3
  202. *%%% EDGE_SMOOTHING
  203. *Feature: EDGE_SMOOTHING
  204. {
  205.     *rcNameID: =EDGE_SMOOTHING_DISPLAY
  206.     *DefaultOption: Option1
  207.     *Option: Option1
  208.     {
  209.         *rcNameID: =ON_DISPLAY
  210.         *switch: InputBin
  211.         {
  212.                 *Case: Option3
  213.                 {
  214.                         *Command: CmdSelect
  215.                         {
  216.                                 *Order: DOC_SETUP.3
  217.                                 *Cmd: =PJL_TRAY1_LOCKED =PJL_TRAY2_UNLOCKED =PJL_TRAYMFF_LOCKED =PJL_MANUALFEED_OFF =PJL_FEIT_ON
  218.                         }
  219.                 }
  220.                 *Case: Option4
  221.                 {
  222.                         *Command: CmdSelect
  223.                         {
  224.                                 *Order: DOC_SETUP.3
  225.                                 *Cmd: =PJL_TRAY1_LOCKED =PJL_TRAY2_LOCKED =PJL_TRAYMFF_UNLOCKED =PJL_MANUALFEED_OFF =PJL_FEIT_ON
  226.                         }
  227.                 }
  228.                 *Case: Option5
  229.                 {
  230.                         *Command: CmdSelect
  231.                         {
  232.                                 *Order: DOC_SETUP.3
  233.                                 *Cmd: =PJL_TRAY1_LOCKED =PJL_TRAY2_LOCKED =PJL_TRAYMFF_LOCKED =PJL_MANUALFEED_ON =PJL_FEIT_ON
  234.                         }
  235.                 }
  236.                 *default
  237.                 {
  238.                         *Command: CmdSelect
  239.                         {
  240.                                 *Order: DOC_SETUP.3
  241.                                 *Cmd: =PJL_FEIT_ON
  242.                         }
  243.                 }
  244.         }
  245.     }
  246.     *Option: Option2
  247.     {
  248.         *rcNameID: =OFF_DISPLAY
  249.         *switch: InputBin
  250.         {
  251.                 *Case: Option3
  252.                 {
  253.                         *Command: CmdSelect
  254.                         {
  255.                                 *Order: DOC_SETUP.3
  256.                                 *Cmd: =PJL_TRAY1_LOCKED =PJL_TRAY2_UNLOCKED =PJL_TRAYMFF_LOCKED =PJL_MANUALFEED_OFF =PJL_FEIT_OFF
  257.                         }
  258.                 }
  259.                 *Case: Option4
  260.                 {
  261.                         *Command: CmdSelect
  262.                         {
  263.                                 *Order: DOC_SETUP.3
  264.                                 *Cmd: =PJL_TRAY1_LOCKED =PJL_TRAY2_LOCKED =PJL_TRAYMFF_UNLOCKED =PJL_MANUALFEED_OFF =PJL_FEIT_OFF
  265.                         }
  266.                 }
  267.                 *Case: Option5
  268.                 {
  269.                         *Command: CmdSelect
  270.                         {
  271.                                 *Order: DOC_SETUP.3
  272.                                 *Cmd: =PJL_TRAY1_LOCKED =PJL_TRAY2_LOCKED =PJL_TRAYMFF_LOCKED =PJL_MANUALFEED_ON =PJL_FEIT_OFF
  273.                         }
  274.                 }
  275.                 *default
  276.                 {
  277.                         *Command: CmdSelect
  278.                         {
  279.                                 *Order: DOC_SETUP.3
  280.                                 *Cmd: =PJL_FEIT_OFF
  281.                         }
  282.                 }
  283.         }
  284.     }
  285. }
  286.  
  287.  
  288. *%%% ======================
  289. *%%% DOC_SETUP.5
  290. *%%%     RESOLUTION
  291. *%%%     ENTER LANGUAGE=PCLXL
  292. *%%%     PCL XL Stream Header
  293. *%%%     BeginSession
  294. *%%% CmdEndRaster
  295. *%%%     EndImage
  296. *%%% CmdSendBlockData
  297. *%%%     EndImage
  298. *Feature: Resolution
  299. {
  300.     *rcNameID: =RESOLUTION_DISPLAY
  301.     *DefaultOption: Option1
  302.     *Option: Option1
  303.     {
  304.         *Name: "600 x 600 " =DOTS_PER_INCH
  305.         *DPI: PAIR(600, 600)
  306.         *TextDPI: PAIR(600, 600)
  307.         *MinStripBlankPixels: 32
  308.         EXTERN_GLOBAL: *StripBlanks: LIST(LEADING, ENCLOSED,TRAILING)
  309.         *SpotDiameter: 100
  310.         *Command: CmdBeginRaster
  311.         {
  312.             *Cmd : =PCLXL_CmdBeginRaster
  313.         }
  314.  
  315.         *Command: CmdSendBlockData
  316.         {
  317.             *Cmd : =PCLXL_CmdBeginRaster =PCLXL_CmdSendBlockData
  318.         }
  319.  
  320.         *% EndImage(0xb2)
  321.         *%
  322.         *Command: CmdEndBlockData { *Cmd : =EndImage}
  323.  
  324.         *Command: CmdSelect
  325.         {
  326.             *Order: DOC_SETUP.5
  327.             *Cmd: =PJL_RESOLUTION_600 =PJL_ENTER_PCLXL =PCLXL_StreamHeader =PCLXL_BeginSession600
  328.         }
  329.     }
  330.     *Option: Option2
  331.     {
  332.         *Name: "300 x 300 " =DOTS_PER_INCH
  333.         *DPI: PAIR(300, 300)
  334.         *TextDPI: PAIR(300, 300)
  335.         *MinStripBlankPixels: 32
  336.         EXTERN_GLOBAL: *StripBlanks: LIST(ENCLOSED,TRAILING)
  337.         *SpotDiameter: 100
  338.         *Command: CmdBeginRaster
  339.         {
  340.             *Cmd : =PCLXL_CmdBeginRaster
  341.         }
  342.  
  343.         *Command: CmdEndRaster { *Cmd : =EndImage }
  344.         *Command: CmdSendBlockData
  345.         {
  346.             *Cmd: =PCLXL_CmdSendBlockData
  347.         }
  348.  
  349.         *Command: CmdSelect
  350.         {
  351.             *Order: DOC_SETUP.5
  352.             *Cmd: =PJL_RESOLUTION_300 =PJL_ENTER_PCLXL =PCLXL_StreamHeader =PCLXL_BeginSession300
  353.         }
  354.     }
  355. }
  356.  
  357. *%%% ======================
  358. *%%% DOC_SETUP.6
  359. *%%% OpenDataSource(0x48)
  360. *%%%     SourceType(ubyte) & DataOrg(ubyte)
  361. *%%%     136(0x88)           130(0x82)
  362. *Command: CmdStartDoc
  363. {
  364.     *Order: DOC_SETUP.6
  365.     *Cmd: =ubyte "<00>" =attr_ubyte =SourceType =ubyte "<01>" =attr_ubyte =DataOrg =OpenDataSource
  366. }
  367.  
  368. *%%% ======================
  369. *%%% PAGE_FINISH
  370. *%%% ======================
  371.  
  372. *%%% ======================
  373. *%%% PAGE_FINISH.3
  374. *Command: CmdEndPage
  375. {
  376.     *Order: PAGE_FINISH.1
  377.     *Cmd: =uint16 =NumOfCopy =attr_ubyte =PageCopies =EndPage
  378. }
  379.  
  380. *%%% ======================
  381. *%%% JOB_FINISH.1
  382. *%%% CmdEndJob
  383. *Command: CmdEndJob
  384. {
  385.     *Order: JOB_FINISH.1
  386.     *Cmd: =CloseDataSource =EndSession =PJL_ENDJOB
  387. }
  388.  
  389. *%%% ======================
  390. *%%% PAGE_SETUP
  391. *%%% ======================
  392.  
  393. *%%% ======================
  394. *%%% PAGE_SETUP.1
  395. *%%% BeginPage(0x43)
  396. *%%%     Orientation(40), MediaSize(37), MediaSource(38)
  397. *%%%     ubyte            ubyte          ubyte
  398.  
  399. *BlockMacro: PaperConstraints
  400. {
  401.     *Constraints: LIST(InputBin.Option2, InputBin.Option3)
  402. }
  403.  
  404. *Feature: PaperSize
  405. {
  406.     *rcNameID: =PAPER_SIZE_DISPLAY
  407.     *DefaultOption: LETTER
  408.     *Option: LETTER
  409.     {
  410.         *rcNameID: =RCID_DMPAPER_SYSTEM_NAME  *% rcid 1000
  411.         *PageProtectMem: 4109
  412.         *switch: Orientation
  413.         {
  414.             *case: PORTRAIT
  415.             {
  416.                 *PrintableArea: PAIR(4800, 6300)
  417.                 *PrintableOrigin: PAIR(150, 100)
  418.                 *CursorOrigin: PAIR(150, 80)
  419.                 *Command: CmdSelect
  420.                 {
  421.                     *Order: PAGE_SETUP.1
  422.                     *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
  423. +                         =ubyte =eLetterPaper =attr_ubyte =MediaSize
  424.                 }
  425.             }
  426.             *case: LANDSCAPE_CC90
  427.             {
  428.                 *PrintableArea: PAIR(4900, 6360)
  429.                 *PrintableOrigin: PAIR(100, 120)
  430.                 *CursorOrigin: PAIR(100, 6450)
  431.                 *Command: CmdSelect
  432.                 {
  433.                     *Order: PAGE_SETUP.1
  434.                     *Cmd: =ubyte =eReverseLandscape =attr_ubyte =Orientation
  435. +                         =ubyte =eLetterPaper =attr_ubyte =MediaSize
  436.                 }
  437.             }
  438.         }
  439.     }
  440.     *Option: LEGAL
  441.     {
  442.         *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  443.         *PageProtectMem: 5230
  444.         *switch: Orientation
  445.         {
  446.             *case: PORTRAIT
  447.             {
  448.                 *PrintableArea: PAIR(4800, 8200)
  449.                 *PrintableOrigin: PAIR(150, 100)
  450.                 *CursorOrigin: PAIR(150, 80)
  451.                 *Command: CmdSelect
  452.                 {
  453.                     *Order: PAGE_SETUP.1
  454.                     *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
  455. +                         =ubyte =eLegalPaper =attr_ubyte =MediaSize
  456.                 }
  457.             }
  458.             *case: LANDSCAPE_CC90
  459.             {
  460.                 *PrintableArea: PAIR(4900, 8160)
  461.                 *PrintableOrigin: PAIR(100, 120)
  462.                 *CursorOrigin: PAIR(100, 8250)
  463.                 *Command: CmdSelect
  464.                 {
  465.                     *Order: PAGE_SETUP.1
  466.                     *Cmd: =ubyte =eReverseLandscape =attr_ubyte =Orientation
  467. +                         =ubyte =eLegalPaper =attr_ubyte =MediaSize
  468.                 }
  469.             }
  470.         }
  471.     }
  472.     *Option: EXECUTIVE
  473.     {
  474.         *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  475.         *PageProtectMem: 4109
  476.         *switch: Orientation
  477.         {
  478.             *case: PORTRAIT
  479.             {
  480.                 *PrintableArea: PAIR(4050, 6100)
  481.                 *PrintableOrigin: PAIR(150, 100)
  482.                 *CursorOrigin: PAIR(150, 80)
  483.                 *Command: CmdSelect
  484.                 {
  485.                     *Order: PAGE_SETUP.1
  486.                     *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
  487. +                         =ubyte =eExecPaper =attr_ubyte =MediaSize
  488.                 }
  489.             }
  490.             *case: LANDSCAPE_CC90
  491.             {
  492.                 *PrintableArea: PAIR(4150, 6060)
  493.                 *PrintableOrigin: PAIR(100, 120)
  494.                 *CursorOrigin: PAIR(100, 6150)
  495.                 *Command: CmdSelect
  496.                 {
  497.                     *Order: PAGE_SETUP.1
  498.                     *Cmd: =ubyte =eReverseLandscape =attr_ubyte =Orientation
  499. +                         =ubyte =eExecPaper =attr_ubyte =MediaSize
  500.                 }
  501.             }
  502.         }
  503.     }
  504.  
  505.     *Option: A4
  506.     {
  507.         *rcNameID: =RCID_DMPAPER_SYSTEM_NAME  *%  1008
  508.         *PageProtectMem: 4249
  509.         *switch: Orientation
  510.         {
  511.             *case: PORTRAIT
  512.             {
  513.                 *PrintableArea: PAIR(4676, 6814)
  514.                 *PrintableOrigin: PAIR(142, 100)
  515.                 *CursorOrigin: PAIR(142, 100)
  516.                 *Command: CmdSelect
  517.                 {
  518.                     *Order: PAGE_SETUP.1
  519.                     *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
  520. +                         =ubyte =eA4Paper =attr_ubyte =MediaSize
  521.                 }
  522.             }
  523.             *case: LANDSCAPE_CC90
  524.             {
  525.                 *PrintableArea: PAIR(4760, 6778)
  526.                 *PrintableOrigin: PAIR(100, 140)
  527.                 *CursorOrigin: PAIR(100, 6842)
  528.                 *Command: CmdSelect
  529.                 {
  530.                     *Order: PAGE_SETUP.1
  531.                     *Cmd: =ubyte =eReverseLandscape =attr_ubyte =Orientation
  532. +                         =ubyte =eA4Paper =attr_ubyte =MediaSize
  533.                 }
  534.             }
  535.         }
  536.     }
  537.     *Option: A5
  538.     {
  539.         *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  540.         *PageProtectMem: 2125
  541.         *switch: Orientation
  542.         {
  543.             *case: PORTRAIT
  544.             {
  545.                 *PrintableArea: PAIR(3212, 4760)
  546.                 *PrintableOrigin: PAIR(142, 100)
  547.                 *CursorOrigin: PAIR(142, 76)
  548.                 *Command: CmdSelect
  549.                 {                              
  550.                     *Order: PAGE_SETUP.1
  551.                     *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
  552. +                         =ubyte =eA5Paper =attr_ubyte =MediaSize
  553.                 }
  554.  
  555.             }
  556.             *case: LANDSCAPE_CC90
  557.             {
  558.                 *PrintableArea: PAIR(3296, 4724)
  559.                 *PrintableOrigin: PAIR(100, 150)
  560.                 *CursorOrigin: PAIR(100, 4790)
  561.                 *Command: CmdSelect
  562.                 {
  563.                     *Order: PAGE_SETUP.1
  564.                     *Cmd: =ubyte =eReverseLandscape =attr_ubyte =Orientation
  565. +                         =ubyte =eA5Paper =attr_ubyte =MediaSize
  566.                 }
  567.             }
  568.         }
  569.     }
  570.     *Option: ENV_10
  571.     {
  572.         *rcNameID: =RCID_DMPAPER_SYSTEM_NAME  *%  1019
  573.         *InsertBlock: =PaperConstraints
  574.         *PageProtectMem: 4109
  575.         *switch: Orientation
  576.         {
  577.             *case: PORTRAIT
  578.             {
  579.                 *PrintableArea: PAIR(2174, 5500)
  580.                 *PrintableOrigin: PAIR(150, 100)
  581.                 *CursorOrigin: PAIR(150, 90)
  582.                 *Command: CmdSelect
  583.                 {
  584.                     *Order: PAGE_SETUP.1
  585.                     *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
  586. +                         =ubyte =eCOM10Envelope =attr_ubyte =MediaSize
  587.                 }
  588.             }
  589.             *case: LANDSCAPE_CC90
  590.             {
  591.                 *PrintableArea: PAIR(2274, 5460)
  592.                 *PrintableOrigin: PAIR(100, 120)
  593.                 *CursorOrigin: PAIR(100, 5550)
  594.                 *Command: CmdSelect
  595.                 {
  596.                     *Order: PAGE_SETUP.1
  597.                     *Cmd: =ubyte =eReverseLandscape =attr_ubyte =Orientation
  598. +                         =ubyte =eCOM10Envelope =attr_ubyte =MediaSize
  599.                 }
  600.             }
  601.         }
  602.     }
  603.     *Option: ENV_DL
  604.     {
  605.         *rcNameID: =RCID_DMPAPER_SYSTEM_NAME  *%  1026
  606.         *InsertBlock: =PaperConstraints
  607.         *PageProtectMem: 4109
  608.         *switch: Orientation
  609.         {
  610.             *case: PORTRAIT
  611.             {
  612.                 *PrintableArea: PAIR(2314, 4996)
  613.                 *PrintableOrigin: PAIR(142, 100)
  614.                 *CursorOrigin: PAIR(142, 90)
  615.                 *Command: CmdSelect
  616.                 {
  617.                     *Order: PAGE_SETUP.1
  618.                     *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
  619. +                         =ubyte =eDLEnvelope =attr_ubyte =MediaSize
  620.                 }
  621.             }
  622.             *case: LANDSCAPE_CC90
  623.             {
  624.                 *PrintableArea: PAIR(2398, 4960)
  625.                 *PrintableOrigin: PAIR(100, 118)
  626.                 *CursorOrigin: PAIR(100, 5046)
  627.                 *Command: CmdSelect
  628.                 {
  629.                     *Order: PAGE_SETUP.1
  630.                     *Cmd: =ubyte =eReverseLandscape =attr_ubyte =Orientation
  631. +                         =ubyte =eDLEnvelope =attr_ubyte =MediaSize
  632.                 }
  633.             }
  634.         }
  635.     }
  636.     *Option: ENV_C5
  637.     {
  638.         *rcNameID: =RCID_DMPAPER_SYSTEM_NAME  *%  1027
  639.         *InsertBlock: =PaperConstraints
  640.         *PageProtectMem: 4109
  641.         *switch: Orientation
  642.         {
  643.             *case: PORTRAIT
  644.             {
  645.                 *PrintableArea: PAIR(3542, 5208)
  646.                 *PrintableOrigin: PAIR(142, 100)
  647.                 *CursorOrigin: PAIR(142, 90)
  648.                 *Command: CmdSelect
  649.                 {
  650.                     *Order: PAGE_SETUP.1
  651.                     *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
  652. +                         =ubyte =eC5Envelope =attr_ubyte =MediaSize
  653.                 }
  654.             }
  655.             *case: LANDSCAPE_CC90
  656.             {
  657.                 *PrintableArea: PAIR(3626, 5172)
  658.                 *PrintableOrigin: PAIR(100, 119)
  659.                 *CursorOrigin: PAIR(100, 5257)
  660.                 *Command: CmdSelect
  661.                 {
  662.                     *Order: PAGE_SETUP.1
  663.                     *Cmd: =ubyte =eReverseLandscape =attr_ubyte =Orientation
  664. +                         =ubyte =eC5Envelope =attr_ubyte =MediaSize
  665.                 }
  666.             }
  667.         }
  668.     }
  669.     *Option: ENV_MONARCH
  670.     {
  671.         *rcNameID: =RCID_DMPAPER_SYSTEM_NAME  *%  1036
  672.         *InsertBlock: =PaperConstraints
  673.         *PageProtectMem: 4109
  674.         *switch: Orientation
  675.         {
  676.             *case: PORTRAIT
  677.             {
  678.                 *PrintableArea: PAIR(2024, 4300)
  679.                 *PrintableOrigin: PAIR(150, 100)
  680.                 *CursorOrigin: PAIR(150, 90)
  681.                 *Command: CmdSelect
  682.                 {
  683.                     *Order: PAGE_SETUP.1
  684.                     *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
  685. +                         =ubyte =eMonarchEnvelope =attr_ubyte =MediaSize
  686.                 }
  687.             }
  688.             *case: LANDSCAPE_CC90
  689.             {
  690.                 *PrintableArea: PAIR(2124, 4260)
  691.                 *PrintableOrigin: PAIR(100, 120)
  692.                 *CursorOrigin: PAIR(100, 4350)
  693.                 *Command: CmdSelect
  694.                 {
  695.                     *Order: PAGE_SETUP.1
  696.                     *Cmd: =ubyte =eReverseLandscape =attr_ubyte =Orientation
  697. +                         =ubyte =eMonarchEnvelope =attr_ubyte =MediaSize
  698.                 }
  699.             }
  700.         }
  701.     }
  702.     *Option: ENV_B5
  703.     {
  704.         *rcNameID: =RCID_DMPAPER_SYSTEM_NAME
  705.         *PageProtectMem: 4109
  706.         *InsertBlock: =PaperConstraints
  707.         *switch: Orientation
  708.         {
  709.             *case: PORTRAIT
  710.             {
  711.                 *PrintableArea: PAIR(3872, 5704)
  712.                 *PrintableOrigin: PAIR(142, 100)
  713.                 *CursorOrigin: PAIR(142, 70)
  714.                 *Command: CmdSelect
  715.                 {
  716.                     *Order: PAGE_SETUP.1
  717.                     *Cmd: =ubyte =ePortraitOrientation =attr_ubyte =Orientation
  718. +                         =ubyte =eB5Envelope =attr_ubyte =MediaSize
  719.                 }
  720.             }
  721.             *case: LANDSCAPE_CC90
  722.             {
  723.                 *PrintableArea: PAIR(3956, 5668)
  724.                 *PrintableOrigin: PAIR(100, 119)
  725.                 *CursorOrigin: PAIR(100, 5754)
  726.                 *Command: CmdSelect
  727.                 {
  728.                     *Order: PAGE_SETUP.1
  729.                     *Cmd: =ubyte =eReverseLandscape =attr_ubyte =Orientation
  730. +                         =ubyte =eB5Envelope =attr_ubyte =MediaSize
  731.                 }
  732.             }
  733.         }
  734.     }
  735. }
  736.  
  737. *%%% ======================
  738. *%%% PAGE_SETUP.2
  739. *%%% BeginPage(0x43)
  740. *%%%     Orientation(0x40), MediaSize(0x37), MediaSource(0x38)
  741. *%%%     ubyte               ubyte             ubyte
  742. *%%%     MediaSource
  743. *Feature: InputBin
  744. {
  745.     *rcNameID: =PAPER_SOURCE_DISPLAY
  746.     *DefaultOption: Option1
  747.     *Option: Option1
  748.     {
  749.         *rcNameID: =AUTO_DISPLAY
  750.         *Command: CmdSelect
  751.         {
  752.             *Order: PAGE_SETUP.2
  753.             *Cmd: =ubyte =eAutoSelect =attr_ubyte =MediaSource
  754.         }
  755.     }
  756.     *Option: Option2
  757.     {
  758.         *rcNameID: =TRAY1_DISPLAY
  759.         *Command: CmdSelect
  760.         {
  761.             *Order: PAGE_SETUP.2
  762.             *Cmd: =ubyte =eUpperCassette =attr_ubyte =MediaSource
  763.         }
  764.     }
  765.     *Option: Option3
  766.     {
  767.         *rcNameID: =TRAY2_DISPLAY
  768.         *Command: CmdSelect
  769.         {
  770.             *Order: PAGE_SETUP.2
  771.             *Cmd: =ubyte =eLowerCassette =attr_ubyte =MediaSource
  772.         }
  773.     }
  774.     *Option: Option4
  775.     {
  776.         *rcNameID: =MULTI_FEEDER_DISPLAY
  777.         *Command: CmdSelect
  778.         {
  779.             *Order: PAGE_SETUP.2
  780.             *Cmd: =ubyte =eMultiPurposeTray =attr_ubyte =MediaSource
  781.         }
  782.     }
  783.     *Option: Option5
  784.     {
  785.         *rcNameID: =MANUAL_FEED_DISPLAY
  786.         *Command: CmdSelect
  787.         {
  788.             *Order: PAGE_SETUP.2
  789.             *Cmd: =ubyte =eManualFeed =attr_ubyte =MediaSource
  790.         }
  791.     }
  792. }
  793.  
  794. *%%% ======================
  795. *%%% PAGE_SETUP.3
  796. *%%% SetPageOrigin
  797. *%%%     PageOrigin
  798. *%%% SetPageScale
  799. *switch: Resolution
  800. {
  801.         *case: Option2
  802.         {
  803.             *switch: Orientation
  804.             {
  805.                 *case: PORTRAIT
  806.                 {
  807.                         *Command: CmdStartPage
  808.                         {
  809.                                 *Order: PAGE_SETUP.3
  810.                                 *Cmd: =ubyte =eSimplexFrontSide =attr_ubyte =SimplexPageMode =BeginPage
  811. +                                     =sint16_xy "<4700><3200>" =attr_ubyte =PageOrigin =SetPageOrigin
  812. +                                     =real32_xy "<0000803f><0000803f>" =attr_ubyte =PageScale =SetPageScale
  813. +                                     =ubyte "<01>" =attr_ubyte =ColorSpace =SetColorSpace
  814.                         }
  815.                 }
  816.                 *case: LANDSCAPE_CC90
  817.                 {
  818.                         *Command: CmdStartPage
  819.                         {
  820.                                 *Order: PAGE_SETUP.3
  821.                                 *Cmd: =ubyte =eSimplexFrontSide =attr_ubyte =SimplexPageMode =BeginPage
  822. +                                     =sint16_xy "<3b00><3200>" =attr_ubyte =PageOrigin =SetPageOrigin
  823. +                                     =real32_xy "<0000803f><0000803f>" =attr_ubyte =PageScale =SetPageScale
  824. +                                     =ubyte "<01>" =attr_ubyte =ColorSpace =SetColorSpace
  825.                         }
  826.                 }
  827.             }
  828.         }
  829.  
  830.         *default  
  831.         {
  832.             *switch: Orientation
  833.             {
  834.                 *case: PORTRAIT
  835.                 {
  836.                         *Command: CmdStartPage
  837.                         {
  838.                                 *Order: PAGE_SETUP.3
  839.                                 *Cmd: =ubyte =eSimplexFrontSide =attr_ubyte =SimplexPageMode =BeginPage
  840. +                                     =sint16_xy "<6600><6600>" =attr_ubyte =PageOrigin =SetPageOrigin
  841. +                                     =real32_xy "<0000803f><0000803f>" =attr_ubyte =PageScale =SetPageScale
  842. +                                     =ubyte "<01>" =attr_ubyte =ColorSpace =SetColorSpace
  843.                         }
  844.                 }
  845.                 *case: LANDSCAPE_CC90
  846.                 {
  847.                         *Command: CmdStartPage
  848.                         {
  849.                                 *Order: PAGE_SETUP.3
  850.                                 *Cmd: =ubyte =eSimplexFrontSide =attr_ubyte =SimplexPageMode =BeginPage
  851. +                                     =sint16_xy "<7600><6400>" =attr_ubyte =PageOrigin =SetPageOrigin
  852. +                                     =real32_xy "<0000803f><0000803f>" =attr_ubyte =PageScale =SetPageScale
  853. +                                     =ubyte "<01>" =attr_ubyte =ColorSpace =SetColorSpace
  854.                         }
  855.                 }
  856.             }
  857.         }
  858.  
  859. }
  860.  
  861.  
  862. *%%% ======================
  863. *%%% Feature
  864. *%%% Memory
  865. *Feature: Memory
  866. {
  867.     *rcNameID: =PRINTER_MEMORY_DISPLAY
  868.     *DefaultOption: 4MB
  869. *% 4MB Standard memory, 3 memory slots with 4, 8, 16 or 32 MB dimms avail.
  870. *% Max memory 96 (+4 on board) = 100
  871.         *MemConfigMB: PAIR(4, 3)
  872.         *MemConfigMB: PAIR(5, 4)
  873.         *MemConfigMB: PAIR(6, 5)
  874.         *MemConfigMB: PAIR(7, 6)
  875.         *MemConfigMB: PAIR(8, 7)
  876.         *MemConfigMB: PAIR(9, 7)
  877.         *MemConfigMB: PAIR(10, 8)
  878.         *MemConfigMB: PAIR(12, 10)
  879.         *MemConfigMB: PAIR(13, 11)
  880.         *MemConfigMB: PAIR(14, 12)
  881.         *MemConfigMB: PAIR(16, 13)
  882.         *MemConfigMB: PAIR(20, 17)
  883.         *MemConfigMB: PAIR(21, 18)
  884.         *MemConfigMB: PAIR(22, 19)
  885.         *MemConfigMB: PAIR(24, 21)
  886.         *MemConfigMB: PAIR(28, 24)
  887.         *MemConfigMB: PAIR(36, 31)
  888.         *MemConfigMB: PAIR(37, 32)
  889.         *MemConfigMB: PAIR(38, 33)
  890.         *MemConfigMB: PAIR(40, 35)
  891.         *MemConfigMB: PAIR(44, 39)
  892.         *MemConfigMB: PAIR(52, 46)
  893.         *MemConfigMB: PAIR(68, 59)
  894. }
  895.  
  896. *%%% ======================
  897. *%%% Device fonts
  898. *%%% ======================
  899.  
  900. *DefaultFont: =RC_FONT_COURIERR
  901. *DefaultCTT: 0
  902.  
  903. *DeviceFonts: LIST(
  904. +    =RC_FONT_ALBERTX,
  905. +    =RC_FONT_AOLIVEB,
  906. +    =RC_FONT_AOLIVER,
  907. +    =RC_FONT_ARIALB,
  908. +    =RC_FONT_ARIALI,
  909. +    =RC_FONT_ARIALJ,
  910. +    =RC_FONT_ARIALR,
  911. +    =RC_FONT_COURIERB,
  912. +    =RC_FONT_COURIERI,
  913. +    =RC_FONT_COURIERJ,
  914. +    =RC_FONT_COURIERR,
  915. +    =RC_FONT_LETGOTHB,
  916. +    =RC_FONT_LETGOTHI,
  917. +    =RC_FONT_LETGOTHR,
  918. +    =RC_FONT_MARGOLDR,
  919. +    =RC_FONT_TIMESNRB,
  920. +    =RC_FONT_TIMESNRI,
  921. +    =RC_FONT_TIMESNRJ,
  922. +    =RC_FONT_TIMESNRR,
  923. +    =RC_FONT_WINGDINGS,
  924. +    =RC_FONT_SYMBOL)
  925.  
  926. *TTFS: AlbertusX
  927. {
  928.   *TTFontName: "Albertus Extra Bold"
  929.   *DevFontName: "Albertus Extra Bold"
  930. }
  931. *TTFS: AntiqueOlive
  932. {
  933.   *TTFontName: "Antique Olive"
  934.   *DevFontName: "Antique Olive"
  935. }
  936. *TTFS: LetterGothic
  937. {
  938.   *TTFontName: "Letter Gothic"
  939.   *DevFontName: "Letter Gothic"
  940. }
  941. *TTFS: Marigold
  942. {
  943.   *TTFontName: "Marigold"
  944.   *DevFontName: "Marigold"
  945. }
  946.  
  947. *%% =======================
  948. *%% Optional Input Trays
  949. *%% =======================
  950. *Feature: TRAY2
  951. {
  952.     *rcNameID: =TRAY2_DISPLAY
  953.     *FeatureType: PRINTER_PROPERTY
  954.     *DefaultOption: FALSE
  955.     *Option: FALSE
  956.     {
  957.         *rcNameID: =NOT_INSTALLED_DISPLAY
  958.     }
  959.     *Option: TRUE
  960.     {
  961.         *rcNameID: =INSTALLED_DISPLAY
  962.     }
  963. }
  964. *InvalidCombination: LIST(TRAY2.FALSE,InputBin.Option3)
  965.  
  966. *Feature: MULTI_FEEDER
  967. {
  968.     *rcNameID: =MULTI_FEEDER_DISPLAY
  969.     *FeatureType: PRINTER_PROPERTY
  970.     *DefaultOption: FALSE
  971.     *Option: FALSE
  972.     {
  973.         *rcNameID: =NOT_INSTALLED_DISPLAY
  974.     }
  975.     *Option: TRUE
  976.     {
  977.         *rcNameID: =INSTALLED_DISPLAY
  978.     }
  979. }
  980. *InvalidCombination: LIST(MULTI_FEEDER.FALSE,InputBin.Option4)
  981.  
  982.  
  983. *%%% ======================
  984. *%%% PCL XL GPD file main
  985. *%%% ======================
  986.  
  987. *%%% ======================
  988. *%%% Global Entries
  989. *%%% Attributes
  990. *%%% ======================
  991. *MasterUnits: PAIR(600, 600)
  992. *CodePage: 1252
  993. *ResourceDLL: "pclxl.dll"
  994. *PrinterType: PAGE
  995. *Personality: =PERSONALITY_PCLXL
  996. *rcPersonalityID: =PERSONALITY_PCLXL_DISPLAY
  997. *%%% *rcPrinterIconID:
  998. *%%% *HelpFile:
  999.  
  1000. *%%% ======================
  1001. *%%% Printing attributes
  1002. *%%% ======================
  1003. *RotateCoordinate?: TRUE
  1004. *RotateRaster?: TRUE
  1005. *RotateFont?: TRUE
  1006. *EjectPageWithFF?: FALSE
  1007.  
  1008. *TextCaps: LIST(TC_CR_ANY,TC_CR_90,TC_SF_X_YINDEP,TC_SA_CONTIN,TC_IA_ABLE,TC_UA_ABLE)
  1009. *MemoryUsage: LIST(FONT)
  1010. *CursorXAfterCR: AT_PRINTABLE_X_ORIGIN
  1011. *CursorXAfterSendBlockData: AT_GRXDATA_ORIGIN
  1012. *CursorYAfterSendBlockData: AUTO_INCREMENT
  1013. *BadCursorMoveInGrxMode: LIST(X_PORTRAIT,Y_LANDSCAPE)
  1014. *XMoveThreshold: 0
  1015. *YMoveThreshold: 0
  1016. *XMoveUnit: 600
  1017. *YMoveUnit: 600
  1018.  
  1019. *%%% *MinGrayFill: 1
  1020. *%%% *MaxGrayFill: 100
  1021.  
  1022. *%%% *OutputDataFormat: H_BYTE
  1023. *%%% *OptimizeLeftBound?: TRUE
  1024.  
  1025. *%%% ======================
  1026. *%%% Color
  1027. *%%% ======================
  1028. *Feature: ColorMode
  1029. {
  1030.     *ConcealFromUI?: TRUE
  1031.     *rcNameID: =COLOR_PRINTING_MODE_DISPLAY
  1032.     *DefaultOption: Mono
  1033.     *Option: Mono
  1034.     {
  1035.         *rcNameID: =COLOR_DISPLAY
  1036.         *Color?: FALSE
  1037.         *DevNumOfPlanes: 1
  1038.         *DevBPP: 24
  1039.         *DrvBPP: 24
  1040.         *PaletteSize: 256
  1041.         *PaletteProgrammable?: FALSE
  1042.     }
  1043. }
  1044.  
  1045. *%%% ======================
  1046. *%%% TrueType fonts
  1047. *%%% ======================
  1048.  
  1049. *CharPosition: BASELINE
  1050. *TTFSEnabled?: TRUE
  1051. *FontFormat: OEM_CALLBACK
  1052. *MinFontID: 1
  1053. *MaxFontID: 65535
  1054. *MinGlyphID: 1
  1055. *MaxGlyphID: 1000
  1056.  
  1057. *%%% ======================
  1058. *%%% Cursor commands
  1059. *%%% ======================
  1060.  
  1061. *Command: CmdCR { *Cmd: =CR}
  1062. *Command: CmdLF { *Cmd: =LF}
  1063. *Command: CmdFF { *Cmd: =FF}
  1064.  
  1065. *%%% SetCursor(0x6b)
  1066. *%%%     Point(76(0x40c)) uint_16
  1067. *%%% SetCursorRel(0x6c)
  1068. *%%%     Point(76(0x40c)) uint_16
  1069. *Command: CmdXMoveAbsolute
  1070. {
  1071.     *Cmd: ""
  1072. }
  1073. *Command: CmdXMoveRelRight
  1074. {
  1075.     *Cmd: ""
  1076.     *Params: LIST(DestXRel, TextXRes)
  1077. }
  1078. *Command: CmdXMoveRelLeft
  1079. {
  1080.     *Cmd: ""
  1081.     *Params: LIST(DestXRel, TextXRes)
  1082. }
  1083. *Command: CmdYMoveAbsolute
  1084. {
  1085.     *Cmd: ""
  1086.     *Params: LIST(DestY, TextYRes)
  1087. }
  1088. *Command: CmdYMoveRelDown
  1089. {
  1090.     *Cmd: ""
  1091.     *Params: LIST(DestYRel, TextYRes)
  1092. }
  1093. *Command: CmdYMoveRelUp
  1094. {
  1095.     *Cmd: ""
  1096.     *Params: LIST(DestYRel, TextYRes)
  1097. }
  1098. *%%% *Command: CmdPushCursor
  1099. *%%% *Command: CmdPopCursor
  1100.  
  1101. *%%% =======================
  1102. *%%% Font commands
  1103. *%%% =======================
  1104.  
  1105. *Command: CmdSetFontID { *Cmd : "" }
  1106. *Command: CmdSelectFontID
  1107. {
  1108.     *Cmd: ""
  1109.     *Params: LIST(FontHeight, CurrentFontID, TextYRes)
  1110. }
  1111.  
  1112. *Command: CmdSetCharCode
  1113. {
  1114.     *Cmd : ""
  1115. }
  1116.  
  1117. *Command: CmdBoldOn
  1118. {
  1119.     *Cmd : ""
  1120. }
  1121. *Command: CmdBoldOff
  1122. {
  1123.     *Cmd : ""
  1124. }
  1125. *%%% *Command: CmdItalicOn: "=real32_xy "<3ea1e4f700000000>" =attr_ubyte =eCharShear =SetCharShear"
  1126. *%%% *Command: CmdItalicOff: "=real32_xy "<0000000000000000>" =attr_ubyte =eCharShear =SetCharShear"
  1127. *%%% *Command: CmdWhiteTextOn:
  1128. *%%% *Command: CmdWhiteTextOff:
  1129. *%%% *Command: CmdSelectSingleByteMode:
  1130. *%%% *Command: CmdSelectDoubleByteMode:
  1131. *Command: CmdSetAnyRotation
  1132. {
  1133.     *Cmd: ""
  1134.     *Params: LIST(PrintDirInCCDegrees)
  1135. }
  1136. *Command: CmdSetSimpleRotation
  1137. {
  1138.     *Cmd: ""
  1139.     *Params: LIST(PrintDirInCCDegrees)
  1140. }
  1141.